{include file="{$smarty.const.APP_PATH}/Admin/View/Public/head.html"}
<script>
{literal}
   
{/literal}
</script>
<body onload = "startTime();">

<div class="mainwrapper">
{include file="{$smarty.const.APP_PATH}/Admin/View/Public/menu.body.html"}
    <!-- START OF RIGHT PANEL -->
    <div class="rightpanel">
            {include file="{$smarty.const.APP_PATH}/Admin/View/Public/users.body.html"}<!--右边头部-->
        <div class="breadcrumbwidget">
        	<ul class="skins">
                <li><a href="default" class="skin-color default"></a></li>
                <li><a href="orange" class="skin-color orange"></a></li>
                <li><a href="dark" class="skin-color dark"></a></li>
                <li>&nbsp;</li>
                <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
                <li class="wide"><a href="" class="skin-layout wide"></a></li>
            </ul><!--skins-->
        	<ul class="breadcrumb">
                <li><a href="__APP__/Index/main">Home</a> <span class="divider">/</span></li>
                <li><a href="#">用户管理</a> <span class="divider">/</span></li>
                <li class="active">用户列表</li>
            </ul>
        </div><!--breadcrumbs-->
        <div class="pagetitle">
        	<h1>用户列表</h1> <span>用来显示所有用户相关信息</span>
        </div><!--pagetitle-->
        
        <div class="maincontent">
        	<div class="contentinner">
            
            	<h4 class="widgettitle">用户列表</h4>
            	<table class="table table-bordered table-hover" id="dyntable">
                    <colgroup>
                        <col class="con0" style="align: center; width: 4%" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th class="head0 nosort">
                                <input type="checkbox" class="checkall" />
                            </th>
                            <th class="center">ID</th>
                            <th class="center">用户名</th>
                            <th class="center">地址</th>
                            <th class="center">email</th>
                            <th class="center">联系方式</th>
                            <th class="center">身份证</th>
                            <th class="center">删除</th>                           
                        </tr>
                    </thead>
                    <tbody>
					{foreach $userList as $user}
	                   <tr class="gradeX">
	                     <td class="aligncenter">
	                     <span class="center"><input type="checkbox" /></span>
	                     </td>
                         <td class="center">
							{if empty($user)}
							暂时没有用户
							{else}
							{$user['user_id']}
							{/if}
						 </td>
	                     <td class="center">
						  	{if empty($user)}
							暂时没有用户
							{else}
							{$user['user_name']}
							{/if}   
						 </td>
	                     <td class="center">
							{if empty($user)}
							未填写
							{else}
							{$user['addres']}
							{/if}
                         </td>
	                     <td class="center">
							{if empty($user)}
							暂时没有用户
							{else}
							{$user['email']}
							{/if}
                         </td>
                         <td class="center">
                            {if empty($user)}
							暂时没用用户
							{else}
							{$user['phone']}
							{/if}
                         </td>
                         <td class="center">
						    {if empty($user)}
							暂时没用用户
							{else}
							{$user['card_id']}
							{/if}          
                         </td>                                     
                         <td class="center">
                          <a href="{$smarty.const.__CONTROLLER__}/deleteUser/userId/{$user['user_id']}/token/{$token}" onclick="return confirm('你确定要删除吗?');" title="删除">
                          <span class="icon-remove"></span>
                          </a>
                          </td>
	                   </tr>
					   {/foreach}
                    </tbody>
                </table>
				<div class="widgettitle" style="font-size:media;">
				 共有{$userCount}条记录 ---{$countPage}页
				 <a id="dyntable_first" tabindex="0" href="{$smarty.const.__ACTION__}/page/1">首页</a>
				 <a id="dyntable_previous" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$previousPage}">>上页</a>
				 <a id="dyntable_next" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$nextPage}">>下页</a>
				 <a id="dyntable_last" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$countPage}">>末页</a>
				</div>
            </div><!--contentinner-->
        </div><!--maincontent-->
        
    </div><!--mainright-->
    <!-- END OF RIGHT PANEL -->
    <div class="clearfix"></div>
    <div class="footer">
        <div class="footerleft">快达租赁管理 v1.0</div>
        <div class="footerright">&copy; twen_Yee </div>
    </div><!--footer-->
</div><!--mainwrapper-->
</body>
</html>
